package com.svs.system.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.svs.framework.base.service.CrudService;
import com.svs.system.domain.SysDictData;
import com.svs.system.mapper.master.SysDictDataDao;

/**
 * 字典 业务层处理
 * 
 * @author dujianqiao
 */
@Service
public class SysDictDataService extends CrudService<SysDictDataDao, SysDictData> {

	@Autowired
	private SysDictDataDao dictDataDao;


	/**
	 * 根据字典类型和字典键值查询字典数据信息
	 * 
	 * @param dictType
	 *            字典类型
	 * @param dictValue
	 *            字典键值
	 * @return 字典标签
	 */
	public String selectDictLabel(String dictType, String dictValue) {
		return dictDataDao.selectDictLabel(dictType, dictValue);
	}

}
